@extends('layouts.default')
@section('content') 
@foreach ($values as $v)
<div class="box">
    <header>
        <div class="icons">
            <i class="fa fa-list"></i>
        </div>
        <h5>{{Lang::get('messages.upload_images')}}</h5>
        <div class="toolbar">
            <span class="label label-default">
                <i class="fa fa-list-alt"></i>
            </span> 
        </div>
    </header>
    <?php
    foreach ($values as $v) {
        ?>
        <div class="body">
            <form action="<?php echo $upload_url ?>" enctype="multipart/form-data" 
                  method="post" id="form-upload">
                <input type="file" name="uploaded_files" size="40">
                <input type="hidden" name="id_value" value="<?php echo $v->drpasportid ?>"><br/>
                <input type="hidden" name="rentalId" value="<?php echo isset($rentalId)?$rentalId:'' ?>"><br/>
                <input type="submit" value="{{ Lang::get('messages.upload_btn') }}">
                <div><br/>
                    @if(Session::has('message'))
                    <p class="alert {{ Session::get('alert-class', 'alert-danger') }}">
                        {{ Session::get('message') }}</p>
                    @endif
                </div>
            </form>
        </div>
        <?php
    }
    ?>
</div>
@endforeach
@stop